<%--
  Created by IntelliJ IDEA.
  User: Chengbo Zhang
  Date: 2023/2/23
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>table</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/table.css">
</head>
<body class="justify-content-center flex-wrap">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div>
    <button onclick="window.location.href='/add'">添加</button>
</div>
<div></div>
<div>
    <div class="justify-content-space-between">
        <div>id</div>
        <div>产品名称</div>
        <div>公司名称</div>
        <div>品牌介绍</div>
        <div>状态</div>
        <div>操作</div>
    </div>
    <c:forEach items="${brandModelList}" var="brand">
        <div class="justify-content-space-between">
            <div>${brand.id}</div>
            <div>${brand.enterPrise}</div>
            <div>${brand.name}</div>
            <div>${brand.introduction}</div>
            <div>${brand.status}</div>
            <div class="justify-content-center">
                <div onclick="window.location.href='/update?brand=${brand}'">修改</div>
                <div onclick="window.location.href='/delete?brand=${brand.id}'">删除</div>
            </div>
        </div>
    </c:forEach>
</div>
</body>
</html>
